import { Feed, Module, Feedback } from './bootstrap'

class DefaultFeed implements Feed {
  title: string
  msg: string
  status: string
  constructor (title: string, msg: string, status: string) {
    this.title = title
    this.msg = msg
    this.status = status
  }
}

export default class TestModule implements Module {
  title: string
  constructor (title: string) {
    this.title = title
  }

  config (feedback: Feedback) {
    feedback(new DefaultFeed(this.title, 'Test Module 1..1111.', 'false'))
    feedback(new DefaultFeed(this.title, 'Test Module 2..2222222.', 'false'))
    feedback(new DefaultFeed(this.title, 'Test Module 3...33333', 'false'))
  }
}
